package com.gitee.cashzhang27.test.cloud.webflux.hi.configuration;

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.reactive.function.client.WebClient;

/**
 * @author Cash Zhang
 * @version v1.0
 * @since 2019/11/19 13:31
 */
@Configuration
public class WebClientConfiguration {

  @Bean
  @LoadBalanced
  WebClient.Builder loadBalancedWebClientBuilder() {
    return WebClient.builder();
  }

  @Bean
  WebClient.Builder webClientBuilder() {
    return WebClient.builder();
  }
}
